﻿using System.Diagnostics;
using LanqiQAwebapi.Models;
using LanqiQAwebapi.Dto;

namespace LanqiQAwebapi.Interface
{
    public interface IUserServer
    {
        Task<string> UserLoginByUserAsync(UserLoginByUser userLoginByUser);
        Task<string> UserLoginByphoneAsync(LoginByPhone loginByPhone);
        Task<bool> UserhaveAsync(User user);
        Task<bool> EdituserAsync(User user);

        Task<User> GetUserAsync(User user);

        Task<User> GetUserNameAsync(string id);

        Task<List<User>> GetUsersAsync();

        Task<string> SendPhoneMMessageCodeAsync(UserLoginByphone userLoginByphone);
        Task<bool> AddUserByPhoneAsync(AddUserByPhone addUserByPhone);
        bool addFollow(int userId,int  followId);
        bool unfollow(int userid, int followId);

    }
}
